import 'package:flutter/material.dart';

import 'color_constant.dart';
import 'icon_config_default.dart';

class QueryReceiveWidget extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Container(
      width: 150,
      height: 120,
      child: ListView.builder(
          itemExtent: 120,
          itemCount: 5,
          scrollDirection: Axis.horizontal,
          itemBuilder: (context,index){
            return Column(
              children: [
                Container(
                  width: 130,
                  height: 40,
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Text("顺丰 SF20596728573654",style: TextStyle(
                          fontSize: 12,
                          fontWeight: FontWeight.w500,
                          color: ColorConstant.ff666666
                      ),),
                      Container(
                        margin: const EdgeInsets.only(right: 8),
                        child: Row(
                          children: [
                            Container(
                              width: 30,
                              height: 16,
                              margin: const EdgeInsets.only(right: 3),
                              decoration: BoxDecoration(
                                  borderRadius: BorderRadius.circular(2),
                                  border: Border.all(color: ColorConstant.ff85cf26,width: 1)
                              ),
                              child: Text("待取件",style: TextStyle(
                                  fontSize: 10,
                                  fontWeight: FontWeight.bold,
                                  color: ColorConstant.ff85cf26
                              ),),
                            ),

                          ],
                        ),
                      )
                    ],
                  ),
                ),
                Column(
                  children: [
                    Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: [
                        Text("取件码",style: TextStyle(
                            fontSize: 12,
                            fontWeight: FontWeight.w500,
                            color: ColorConstant.ff666666
                        ),),
                        Container(
                          margin: const EdgeInsets.only(left: 12),
                          child: Text("1924 2918",style: TextStyle(
                              fontSize: 16,
                              fontWeight: FontWeight.bold,
                              color: ColorConstant.ff79c621
                          ),),
                        )
                      ],
                    ),
                    Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: [
                        Text("柜机地址",style: TextStyle(
                            fontSize: 12,
                            fontWeight: FontWeight.w500,
                            color: ColorConstant.ff666666
                        ),),
                        Container(
                          margin: const EdgeInsets.only(left: 12),
                          child: Text("天健时尚空间名苑2栋丰巢柜",style: TextStyle(
                              fontSize: 12,
                              fontWeight: FontWeight.bold,
                              color: ColorConstant.ff666666
                          ),),
                        )
                      ],
                    ),
                    Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: [
                        Text("待支付：",style: TextStyle(
                            fontSize: 12,
                            fontWeight: FontWeight.w500,
                            color: ColorConstant.ff666666
                        ),),
                        Container(
                          margin: const EdgeInsets.only(left: 12),
                          child: Text("￥0.5",style: TextStyle(
                              fontSize: 12,
                              fontWeight: FontWeight.bold,
                              color: ColorConstant.fffb5654
                          ),),
                        )
                      ],
                    ),
                    Container(
                      height: 56,
                      child: Row(
                        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                        children: [
                          Text("尾号5175的快递",
                            style: TextStyle(
                                fontWeight: FontWeight.w500,
                                fontSize: 12,
                                color: ColorConstant.ff79c621
                            ),),
                          Container(
                            width: 80,
                            height: 32,
                            decoration: BoxDecoration(
                                borderRadius: BorderRadius.circular(4),
                                gradient: LinearGradient(
                                    stops: [0.0,1.0],
                                    colors: [ColorConstant.ff85cf25,ColorConstant.ff98d933]
                                )
                            ),
                            alignment: Alignment.center,
                            child: Text("扫码取件",
                              style: TextStyle(
                                  fontWeight: FontWeight.w500,
                                  fontSize: 14,
                                  color: ColorConstant.white
                              ),),
                          )
                        ],
                      ),
                    )
                  ],
                )
              ],
            );
          }
      ),
    );
  }

}